package com.linkage.educloud.ah.bean;

import java.io.Serializable;
import org.json.JSONException;
import org.json.JSONObject;


/**
 * 班级空间点赞对象
 * Created by Mr'Tang on 2018/9/17.
 */

public class DynamicPriasedBean implements Serializable {
    private String user_id;
    private String user_name;

    public static DynamicPriasedBean fromJsonObject(JSONObject json) {
        DynamicPriasedBean priased=new DynamicPriasedBean();
        try {
            priased.setUser_id(json.getString("user_id"));
            priased.setUser_name(json.getString("user_name"));
        } catch (JSONException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        return priased;
    }
    public String getUser_id() {
        return user_id;
    }
    public void setUser_id(String user_id) {
        this.user_id = user_id;
    }
    public String getUser_name() {
        return user_name;
    }
    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }
}
